
#ifndef INITFORMAT_H
#define INITFORMAT_H

#include <BDockLayout>
#include <BTreeWidget>
#include <BTextFormat>

using namespace BWE;

class InitFormat : public BTextFormat
{
public:
	InitFormat(const BString& name = BString());
	~InitFormat();

	virtual void styled(const BStyle* style) override;
	virtual void changed(const BString& text) override;

protected:
	void freshTreeWidget();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

private:
	BHolder<BDockLayout>	_dockLayout;
	BTreeWidget*			_treeWidget;
	BTextEdit*				_textEdit;
	bool					_dirty;

};

#endif
